<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">电子合同下载记录</h1>
</div>
<div class="wrapper-sm" ng-controller="EContractDownloadController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">查询</div>
        <div class="panel-body form-horizontal">
            <div class="form-group">

                <label class="control-label pull-left w-xs">客户单位</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" id="table_operationEContractDownload_client" ng-model="queryTerms.clientName" placeholder="请输入客户单位" name="clientName">
                </div>

                <label class="control-label pull-left w-xs">合同号</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" id="table_operationEContractDownload_contractNumber" ng-model="queryTerms.contractNumber" placeholder="请输入合同号" name="contractNumber">
                </div>
                <label class="control-label pull-left w-xs">合同类型</label>
                <div class="col-md-2">
                    <select id="table_operationEContractDownload_econtractType" name="econtractType" class="form-control input-sm" ng-model="queryTerms.econtractType" ng-options="x.value as x.text for x in econtractTypeDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
                <label class="control-label pull-left w-xs">客服专员</label>
                <div class="col-md-2">
                    <select id="table_operationEContractDownload_customerServiceId" name="customerServiceId" class="form-control input-sm" ng-model="queryTerms.customerServiceId" ng-options="x.id as x.realName for x in customerServiceDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label pull-left w-xs">下载起始时间</label>
                <div class="col-md-2 col-xs-12">
                    <div class="input-group input-group-sm date">
                        <input id="downloadStartTime" name="downloadStartTime" datetimepicker plugintype="datetime" ng-model="queryTerms.downloadStartTime" placeholder="起始时间" class="form-control" type="text" />
                        <span id="openStartTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>

                <label class="control-label pull-left w-xs">下载结束时间</label>
                <div class="col-md-2 col-xs-12">
                    <div class="input-group input-group-sm date">
                        <input id="downloadEndTime" name="downloadEndTime" datetimepicker plugintype="datetime" ng-model="queryTerms.downloadEndTime" placeholder="结束时间" class="form-control" type="text" />
                        <span id="openEndTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>

                <label class="control-label pull-left w-xs"></label>
                <div class="col-md-2 col-xs-12"></div>
                <label class="control-label pull-left w-xs"></label>
                <div class="col-md-2 col-xs-12">
                    <button id="table_operationEContractDownload_search" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                        <i class="fa fa-search" ng-show="!querying"></i>
                        <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                        <span ng-show="!querying">查询</span>
                        <span ng-show="querying">查询中...</span>
                    </button>
                </div>
            </div>

        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            下载记录列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" id="table_operationEContractDownload" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize style="height:{{heightA}}px; min-width:1000px; min-height:395px; overflow-y:hidden;">
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>
        </div>
        <div class="panel-body">
            <button id="table_operationEContractList" ng-click="skipBack()" class="pull-right-xs btn btn-sm btn-warning btn-addon "><i class="fa fa-mail-reply"></i>返回</button>
        </div>
    </div>

</div>